package com.example.thirdannotation.y2024.bean;

import org.springframework.beans.factory.FactoryBean;

public class ColorFactoryBean implements FactoryBean<Color> {

    @Override
    public Color getObject() throws Exception {
        return new Color();
    }

    /**
     * @return 返回的类型
     */
    @Override
    public Class<?> getObjectType() {
        return Color.class;
    }
}
